package fybug.nulll.pdstream.WR.Parsing.Source.Partition;
/**
 * <h2>行分割器.</h2>
 * <p>以 {@code "\r\n", "\n\r", "\n"} 为基准分割文本</p>
 * <pre>如传入的数据为：{@code
 * "fuck
 * the
 * world"}
 * 则会分割三次，分割出的文本分别为{@code "fuck","the","world"}
 * </pre>
 *
 * @author fybug
 * @version 0.0.4
 * @see ParsingPartition
 * @see ParsingPartitionS
 * @since JDK 1.8
 */
@SuppressWarnings( "all" )
public final
class LineParsingPartition extends ParsingPartition {
    private static final long serialVersionUID = -5814415035988459055L;

    /**
     * <p>构造一个行分割器.</p>
     * {@code new LineParsingPartition(0);}
     */
    public
    LineParsingPartition() {super(-1, "\r\n", "\n");}

    /**
     * <p>构造一个有最大缓存限制的行分割器.</p>
     *
     * @param size 每次读取最多缓存多少字符,如果 小于零 则代表不限制
     */
    public
    LineParsingPartition(final int size) { super(size, "\r\n", "\n\r", "\n"); }
}
